﻿<UserControl x:Class="CustomerAssistant.OrderTip"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <ListBox x:Name="listbox1" Margin="0,76,0,0" BorderThickness="0"
                 HorizontalContentAlignment="Stretch" FontSize="15">
            <ListBox.ItemContainerStyle>
                <Style>
                    <Setter Property="Control.Padding" Value="0"/>
                    <Setter Property="Control.SnapsToDevicePixels" Value="True"/>
                    <Setter Property="ListBoxItem.FocusVisualStyle" Value="{x:Null}"/>
                    <Style.Triggers>
                        <Trigger Property="ListBoxItem.IsSelected" Value="True">
                            <Setter Property="ListBoxItem.Background" Value="#FFEFFAFF"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </ListBox.ItemContainerStyle>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid Focusable="False">
                        <Border CornerRadius="3" Focusable="False"
                                Background="{Binding Path=Background,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBoxItem}}}">
                            <Grid TextBlock.Foreground="Black"  Focusable="False">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="180"/>
                                    <ColumnDefinition Width="40"/>
                                    <ColumnDefinition Width="30"/>
                                    <ColumnDefinition Width="40"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Text="{Binding Path=Element[Name].Value}" Grid.Column="0" Margin="20,5,5,5"/>
                                <TextBlock Cursor="Hand" HorizontalAlignment="Right" Grid.Column="1" Margin="0,3,5,0">
                                    <Hyperlink TextDecorations="None" CommandParameter="new" RequestNavigate="Hyperlink_RequestNavigate" NavigateUri="{Binding Path=Element[NewUri].Value}">
                                        <TextBlock Foreground="#FFFA6900" Text="{Binding Path=Element[NewCount].Value}"></TextBlock>
                                    </Hyperlink>
                                </TextBlock>
                                <TextBlock Text="条" Grid.Column="2" Margin="0,3,5,0"/>
                                <TextBlock Cursor="Hand" HorizontalAlignment="Right" Grid.Column="3" Margin="15,3,5,0">
                                    <Hyperlink TextDecorations="None" CommandParameter="old" RequestNavigate="Hyperlink_RequestNavigate" NavigateUri="{Binding Path=Element[OldUri].Value}">
                                        <TextBlock Foreground="#FF367AC5" Text="{Binding Path=Element[OldCount].Value}"></TextBlock>
                                    </Hyperlink>
                                </TextBlock>
                                <TextBlock Text="条" Grid.Column="4" Margin="0,3,15,0"/>
                                <Rectangle Height="1" Fill="#FFDCE5EA" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="5" Margin="5,3,5,0"/>
                            </Grid>
                        </Border>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Label Content="新平台" Name="label1" Height="30" Margin="190,40,95,220" FontSize="14" Foreground="#FFB0B0B0" />
        <Label Content="旧平台" Name="label2" Height="30" Margin="255,40,15,220" FontSize="14" Foreground="#FFB0B0B0" />
        <Border BorderBrush="#FF7AACC3" BorderThickness="1" Name="border1" CornerRadius="4"/>
    </Grid>
</UserControl>